const request = require('../libs/request.js');
const commonService = {
  // 评论列表
  getCommentList: (data) => {
    return request({
      url: "/evaluate/list",
      data: data
    });
  },
  // 发布评论
  addComment: (data) => {
    return request({
      url: "/evaluate/add",
      data: data,
    });
  },
  //地铁站点列表
  getSiteList: (data) => {
    return request({
      url: "/site/site_list",
      data: data
    });
  },
  //地铁线路列表
  getLineList: (data) => {
    return request({
      url: "/site/line_list",
      data: data
    });
  },
  //获取站点首页
  getStationIndex: (data) => {
    return request({
      url: "/site/index",
      data: data
    });
  },
  //消息列表
  getMessageList: (data) => {
    return request({
      url: "/message/list",
      data: data
    });
  },
  //站点图
  getSiteCover: (data) => {
    return request({
      url: "/index/map",
      data: data
    });
  },
  //获取接口调用token
  code2Session: (data) => {
    return request({
      url: "/wx/code2Session",
      data: data
    });
  },
  //获取接口调用token
  getAccessToken: (data) => {
    return request({
      url: "/wx/getAccessToken",
      data: data
    });
  },
  //获取用户信息
  getUserinfo: (data) => {
    return request({
      url: "/user/decryptUser",
      data: data
    });
  },
  //店铺信息
  shopinfo: (data) => {
    return request({
      url: "/shop/info",
      data: data
    });
  }
}
module.exports = commonService;